package com.boil.qz.safekavass.pojo;

/**
 * Created by ChenYong on 2017-05-23.
 * <br>
 * 学习统计映射实体类。
 */
public class LearnCountVo {
    /**
     * 学习时间
     */
    private String learnTime;
    /**
     * 学习人数
     */
    private Integer learnPersons;

    /**
     * 默认构造器。
     */
    public LearnCountVo() {
        super();
    }

    public String getLearnTime() {
        return learnTime;
    }

    public void setLearnTime(String learnTime) {
        this.learnTime = learnTime;
    }

    public Integer getLearnPersons() {
        return learnPersons;
    }

    public void setLearnPersons(Integer learnPersons) {
        this.learnPersons = learnPersons;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        LearnCountVo that = (LearnCountVo) o;

        if (learnTime != null ? !learnTime.equals(that.learnTime) : that.learnTime != null) return false;
        return learnPersons != null ? learnPersons.equals(that.learnPersons) : that.learnPersons == null;
    }

    @Override
    public int hashCode() {
        int result = learnTime != null ? learnTime.hashCode() : 0;
        result = 31 * result + (learnPersons != null ? learnPersons.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("LearnCountVo{");
        sb.append("learnTime='").append(learnTime).append('\'');
        sb.append(", learnPersons=").append(learnPersons);
        sb.append('}');
        return sb.toString();
    }
}